import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqRewardHelper } from "../Public/SeqRewardHelper";
import { SEntityId } from "../Public/SEntityId";
type int = number;
//class SPetArenaInfo
    
    export  class SPetArenaInfo
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.entityId.__write(arg1);
            arg1.writeString(this.playerName);
            arg1.writeString(this.petName);
            arg1.writeInt(this.code);
            arg1.writeInt(this.changeCode);
            arg1.writeInt(this.career);
            arg1.writeInt(this.level);
            arg1.writeInt(this.reinLevel);
            arg1.writeInt(this.talent);
            arg1.writeInt(this.spirit);
            arg1.writeInt(this.growth);
            arg1.writeInt(this.rank);
            SeqRewardHelper.write(arg1, this.rewards);
            arg1.writeBool(this.challengeWin);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.playerName = arg1.readString();
            this.petName = arg1.readString();
            this.code = arg1.readInt();
            this.changeCode = arg1.readInt();
            this.career = arg1.readInt();
            this.level = arg1.readInt();
            this.reinLevel = arg1.readInt();
            this.talent = arg1.readInt();
            this.spirit = arg1.readInt();
            this.growth = arg1.readInt();
            this.rank = arg1.readInt();
            this.rewards = SeqRewardHelper.read(arg1);
            this.challengeWin = arg1.readBool();
            return;
        }

        public /* var */entityId: SEntityId;

        public /* var */playerName: string;

        public /* var */petName: string;

        public /* var */code: int;

        public /* var */changeCode: int;

        public /* var */career: int;

        public /* var */level: int;

        public /* var */reinLevel: int;

        public /* var */talent: int;

        public /* var */spirit: int;

        public /* var */growth: int;

        public /* var */rank: int;

        public /* var */rewards: Array<any>;

        public /* var */challengeWin: Boolean;
    }
